
CC = g++
CFLASS = -c -Wall
MKDIR = mkdir

CPP_STARTWIN = src/startWin.cpp
CPP_RENDERBMP = src/renderBMP.cpp

CPP_SOURCES = $(wildcard $(CPP_STARTWIN) $(CPP_RENDERBMP))
OBJ = $(CPP_SOURCES:.cpp=.o)

all: build ICS

ICS: build/main.o $(OBJ)
	$(CC) $^ -o $@ -lncurses

build/main.o: src/main.cpp 
	$(CC) $(CFLASS) $< -o $@

%.o: %.cpp
	$(CC) $(CFLASS) $< -o $@


build: 
	$(MKDIR) build